-- GENERATED SPELL FOR [Tukemuth] --


function spell0_32400(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(57066,pUnit)
pUnit:RegisterEvent('Sorts_32400', 557, 1)
end

function spell1_32400(pUnit, Event) --@Tusk Strike,n/a--
pUnit:FullCastSpellOnTarget(50410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32400', 663, 1)
end

function Sorts_32400(pUnit, Event)
local choix_sorts_32400 = math.random(0, 1)
if choix_sorts_32400 == 0 then
pUnit:RegisterEvent('spell0_32400', 1, 1)
end
if choix_sorts_32400 == 1 then
pUnit:RegisterEvent('spell1_32400', 1, 1)
end
end

function mob32400_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32400', math.random(1500, 3000), 1)
end

function mob32400_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32400_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32400_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32400, 1, 'mob32400_Action')
RegisterUnitEvent(32400, 2, 'mob32400_Leave')
RegisterUnitEvent(32400, 3, 'mob32400_Kill')
RegisterUnitEvent(32400, 4, 'mob32400_Die')
